#include<bits/stdc++.h>
using namespace std;

int main() {
	int n, m;
	cin >> n >> m;
	map<int, int>mp;
	
	for(int i = 1; i <= m; i ++ ) {
		int x;
		char w;
		cin >> x >> w;
		if(w == 'F') {
			cout << "No" << endl;
		} else {
			if(mp[x] == 0) {
				mp[x] = 1;
				cout << "Yes" << endl;
			} else {
				cout << "No" << endl;
			}
		}
	} 
	return 0;
}

